package com.diligent.cloud.sfc.resources;

import com.canny.commons.model.ListResult;
import com.canny.commons.model.ObjectResult;
import com.diligent.cloud.web.resource.IBaseResource;
import com.diligent.cloud.workorder.model.WoLots;
import io.swagger.annotations.ApiOperation;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * SprayingProcessResource interface
 * 车间现场喷涂工艺资源
 *
 * @author xf107278
 * @date 4/17/2020
 */
@RequestMapping("/sfc-surface-treatment")
public interface WorkshopSceneSprayingProcessResource extends IBaseResource {

    @GetMapping("/lots/filter")
    @ApiOperation(value = "车间物流/查询已上架随行卡号", notes = "车间物流/查询已上架随行卡号", tags = {"车间现场"})
    ResponseEntity<ListResult> getLotsFilter(@RequestParam("woOrder") String woOrder, @RequestParam("systemId") Long systemId);


    @GetMapping("/lots")
    @ApiOperation(value = "车间物流/查询随行卡信息", notes = "车间物流/查询随行卡信息", tags = {"车间现场"})
    ResponseEntity<ObjectResult<WoLots>> getLotsInfo(@RequestParam("lotCode") String lotCode);

    @PostMapping("/lots")
    @ApiOperation(value = "车间物流/随行卡上架", notes = "车间物流/随行卡上架", tags = {"车间现场"})
    ResponseEntity<ObjectResult<WoLots>> lotsUp(@RequestParam("lotCode") String lotCode);

}
